﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ProgNetComponents.Classes
{
    /// <summary>
    /// Class to store DialogResult and object
    /// </summary>
    public class ObjectDialogResult
    {
        /// <summary>
        /// Creates ObjectDialogResult instance
        /// </summary>
        /// <param name="result"></param>
        /// <param name="value"></param>
        public ObjectDialogResult(DialogResult result = System.Windows.Forms.DialogResult.None, object value = null)
        {
            this.DialogResult = result;
            this.Value = value;
        }
        /// <summary>
        /// Gets or sets DialogResult
        /// </summary>
        public DialogResult DialogResult { get; set; }

        /// <summary>
        /// Gets or sets Value
        /// </summary>
        public object Value { get; set; }
    }
}
